import java.awt.Polygon;
import java.util.ArrayList;


public class Anisotropy {

	private ArrayList<LineDummy> _lineList = new ArrayList<LineDummy>();
	private Polygon _domain = null;
	private int step = 50;
	private double _angle = 0.0;
	
	public Anisotropy(Polygon domain){
		_domain = domain;
		init();
	}
	
	public void init(){
		
		Polygon area = null;
		
		if (_domain.npoints == 1){
			
			int x = _domain.xpoints[0];
			int y = _domain.ypoints[0];
			
			int[] areaX = {0, x, x, 0};
			int[] areaY = {0, 0, y, y};
			
			area = new Polygon(areaX, areaY, areaX.length);
				
			int max = 2 * x;
		
			for(int i = -1 * x; i <= max; i+=step){
				
				_lineList.add(new LineDummy(i, 0, i + 500, 500));
				_lineList.add(new LineDummy(i + 500, 0, i, 500));
			}
			
		}
		
	}
	
	public ArrayList<LineDummy> getLineList(){
		return _lineList;
	}
	
}
